#/usr/bin/env python
#coding:utf-8

from .model import Model

class UserModel(Model):

    #检查用户登陆状态，确定操作系本人请求
    def checkUserAccess(self,code):
        if self.db.user.find({'session_token':code}).count() != 0:
            return True
        return False